<%@page import="myJDBC.lowLevel.AttributeTypes"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="utf-8"%>
<%@ page import="java.util.*"%>
<%@page import="myJDBC.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
<%@include file="smallJsps/styles.jsp" %>
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Create attrubute</title>
<%@include file="smallJsps/bootstrapInclude.jsp" %>
</head>
<body>
	<%@include file="smallJsps/logoutButton.jsp" %>
	<%@include file="smallJsps/checkAdmin.jsp" %>
	<div class="row-fluid">
		<div class="span6 offset2">
	<form action="SrvlCreateAttribute" name="formCrAtr" method="POST">
		<table border="0">
			<tr>
				<th>create attribute</th>
			</tr>
			<tr>
				<td><label>name<input type="text" name="name"></label></td>
			</tr>
			<tr>
				<td><label>type<select name="selAttrTypes">				
						<%
							ArrayList<String> attrTypes = AttributeTypes.returnAttrTypes();
							for (int i = 0; i < attrTypes.size(); i = i + 2) {
								out.println("<option value="+attrTypes.get(i)+">" + attrTypes.get(i+1) + "</option>");
							}
						%>
				</select></label></td>
			</tr>
			<tr>
				<td><input class="btn btn-primary btn-large" type="submit" value="Create"></td>
			</tr>
		</table>
	</form>
	<form method="get" action="privateOffice"><button class="btn" type="submit">privateOffice</button></form>
	</div>
	</div>
</body>
</html>